<?php
/* @var $this SmsController */
/* @var $model Sms */

$this->breadcrumbs=array(
	'[短信]管理'=>array('admin'),
	'添加[xx]',
);
//设置页面标题
$this->pageTitle=Yii::app()->name.' - 添加[xx]';
$this->contentTitle='添加[xx]';
?>
<!--表单内容-->
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'sms-form',
	'enableAjaxValidation'=>false,
        'enableClientValidation'=>true,
        'clientOptions'=>array(
            'validateOnSubmit'=>true
        ),
    'htmlOptions'=>array('class'=>'ajax_form'),
)); ?>
<table cellspacing="1" class="myform">
	<tr>
		<td align="right"><?php echo $form->labelEx($model,'activity_id'); ?></td>
		<td>
			<?php echo $form->dropDownList($model,'activity_id',CHtml::listData(Activity::model()->findAll(), 'id', 'title')); ?> 
			<?php echo $form->error($model,'activity_id'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'content'); ?></td>
		<td>
			<?php echo $form->textArea($model,'content',array('rows'=>6, 'cols'=>50,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'content'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'is_type'); ?></td>
		<td>
			<?php echo $form->dropDownList($model,'is_type',Ccommon::ctypeList()); ?> 
			<?php echo $form->error($model,'is_type'); ?>
		</td>
	</tr>

	

	<tr>
        <td align="right"></td>
        <td>
            <input class="but" type="submit" name="yt0" value="提 交" />        </td>
    </tr>
</table>
<?php $this->endWidget(); ?>
<!--表单内容-->
